using System;

namespace SpoolFileLibrary.Reader.Winspool {
    public class ImageColorManagementIndent {
        private readonly ImageColorManagementIndentKind imageColorManagementIndentKind;
        private readonly int imageColorManagementIndentValue;

        public ImageColorManagementIndent(int value) {
            this.imageColorManagementIndentValue = value;
            if(value >= 0x00000100) {
                this.imageColorManagementIndentKind = ImageColorManagementIndentKind.Custom;
                return;
            }
            if(!Enum.IsDefined(typeof(ImageColorManagementIndentKind), value)) {
                return;
            }
            this.imageColorManagementIndentKind = (ImageColorManagementIndentKind) value;
            return;
        }

        public ImageColorManagementIndentKind ImageColorManagementMethodKind {
            get { return this.imageColorManagementIndentKind; }
        }

        public int ImageColorManagementIndentKindValue {
            get { return this.imageColorManagementIndentValue; }
        }
    }
}